package com.ycz.pattern.behaviour.commandpattern;

/**
 * @author yancz
 * @ClassName Stock
 * @description: TODO
 * @date 2023-11-28 17:10:20
 * @version: 1.0
 */
public class Stock {

    private String name = "cake doll";
    private int quantity = 20;

    public void buy() {
        System.out.println("Stock【Name：" + name + "，quantity：" + quantity + "】买入！");
    }

    public void sell() {
        System.out.println("Stock【Name：" + name + "，quantity：" + quantity + "】卖出！");
    }

}
